package com.ycky.iot.api.device.dto.control.upstream;

import com.ycky.framework.common.validation.InEnum;
import com.ycky.iot.enums.device.IotDeviceStateEnum;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * IoT 设备【状态】更新 Request DTO
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class IotDeviceStateUpdateReqDTO extends IotDeviceUpstreamAbstractReqDTO {

    /**
     * 设备状态
     */
    @NotNull(message = "设备状态不能为空")
    @InEnum(IotDeviceStateEnum.class) // 只使用：在线、离线
    private Integer state;

}
